package com.yq.socket1.day1;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

/**
 * @author 3307235355@qq.com
 * @description
 * @since 2022/07/01 09:31
 */
public class Demo01 {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.load(new FileInputStream("config.properties"));


        String host = properties.getProperty("host");

        String password = properties.getProperty("password");
        System.out.println("password = " + password);
        System.out.println("host = " + host);


    }
}
